import { createWebHistory, createRouter } from 'vue-router'

import unitStat from '@/views/unitStat/index.vue'
import companyStat from '@/views/companyStat/index.vue'
import dispatchStat from '@/views/dispatchStat/index.vue'
import expenseStat from '@/views/expenseStat/index.vue'
import carsStat from '@/views/carsStat/index.vue'

const routes = [
  { path: '/', redirect: '/unit' },
  // { path: '/test', redirect: '/unit' },
  { path: '/unit', component: unitStat },
  { path: '/company', component: companyStat },
  { path: '/dispatch', component: dispatchStat },
  { path: '/expense', component: expenseStat },
  { path: '/cars', component: carsStat },
]
const router = new createRouter(
  {
    history: createWebHistory(),
    routes,
  }
);

export default router;